<template>
  <Cart :type="2" ref="pageRef" @mounted="init()"/>
</template>

<script setup>
import { reactive, ref, computed } from 'vue'
import { onLoad, onReachBottom, onPullDownRefresh, onShow } from '@dcloudio/uni-app'
import Cart from "@/components/cart/cart.vue";
const pageRef = ref(null)
onShow(()=> {
  init()
})
onPullDownRefresh( async ()=> {
  await init().finally(() => {
    uni.stopPullDownRefresh();
  });
})
onReachBottom(()=> {
  pageRef?.value?.loadNextPage()
})
async function init(){
  await pageRef?.value?.init()
}
</script>

<style lang='scss' scoped>

</style>
